const mongoose = require('mongoose')
const Schema = mongoose.Schema
const { name } = require('../public/javascripts/utils');
//  文章

const schema = new Schema({
  title_cn: { type: String, required: true }, // 姓名
  phone: { type: String, required: true }, // 电话号码
  mail: { type: String, required: true }, // 邮箱地址
  remark: { type: String, required: true }, // 备注
  createTime: { type: Date, default: Date.now }, // 创建时间
  status: { type: Number, default: 1 }, // 状态，默认值为1，表示启用状态
});

module.exports = mongoose.model(name(__filename), schema)